import store from "@/store";
const $uni = uni;
//判断是否登录
function judgeLogin(callback) {
    let hasLogin = store.getters["user/getHasLogin"];
    if (hasLogin) {
        callback();
    } else {
        $uni.$u.route("/pageUser/login/index");
    }
}

export default judgeLogin;
